<?php

namespace Fang\UserBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
*子角色
*@ORM\Entity
*@ORM\Table(name="subroles")
**/
class Subroles
{
  /**
  *@ORM\Column(type="integer")
  *@ORM\Id
  *@ORM\GeneratedValue(strategy="AUTO")
  **/
  private $srid;
  /**
  *关联主账户用户
  *@ORM\ManyToOne(targetEntity="User")
  *@ORM\JoinColumn(name="uid", referencedColumnName="id")
  *@ORM\Column(type="integer")
  **/
  private $uid;
  /**
  *@ORM\Column(type="string", length=255, unique=true)
  **/
  private $name;
  /**
  *@ORM\Column(type="string", length=255)
  **/
  private $readname;
  /**
  *@ORM\Column(type="integer")
  **/
  private $created;
  /**
  *@ORM\Column(type="integer")
  **/
  private $changed;

    /**
     * Get srid
     *
     * @return integer 
     */
    public function getSrid()
    {
        return $this->srid;
    }

    /**
     * Set uid
     *
     * @param integer $uid
     * @return Subroles
     */
    public function setUid($uid)
    {
        $this->uid = $uid;

        return $this;
    }

    /**
     * Get uid
     *
     * @return integer 
     */
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return Subroles
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set readname
     *
     * @param string $readname
     * @return Subroles
     */
    public function setReadname($readname)
    {
        $this->readname = $readname;

        return $this;
    }

    /**
     * Get readname
     *
     * @return string 
     */
    public function getReadname()
    {
        return $this->readname;
    }

    /**
     * Set created
     *
     * @param integer $created
     * @return Subroles
     */
    public function setCreated($created)
    {
        $this->created = $created;

        return $this;
    }

    /**
     * Get created
     *
     * @return integer 
     */
    public function getCreated()
    {
        return $this->created;
    }

    /**
     * Set changed
     *
     * @param integer $changed
     * @return Subroles
     */
    public function setChanged($changed)
    {
        $this->changed = $changed;

        return $this;
    }

    /**
     * Get changed
     *
     * @return integer 
     */
    public function getChanged()
    {
        return $this->changed;
    }
}
